/*** 
 * @ ****************************************** 
 * @Editors: yangyifan yangyf@mw-robot.com
 * @Date: 2025-03-13 23:02:05
 * @LastEditTime: 2025-04-30 15:10:36
 * @Description: 
 * @ ****************************************** 
 */

#pragma once

#include "config_info.h"
class ConfigInstance
{
public:
    // 单例模式
    static ConfigInstance& instance(){
        static ConfigInstance config_instance;
        return config_instance;
    }

    ConfigInfo& get_config(){
        return *configInfo_;
    }

private:
    ConfigInstance() : 
        configInfo_(std::make_unique<ConfigInfo>()) {
            
        }
    ~ConfigInstance() = default;

    std::unique_ptr<ConfigInfo> configInfo_;
};